package com.iespring.controller.app.footprint;

import com.iespring.bean.common.BasePageInfo;
import com.iespring.bean.common.BaseRespVo;
import com.iespring.service.app.footprint.WxFootPrintService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import javax.validation.Valid;
import java.util.Map;

/**
 * Auth: 杨宇健
 * Time: 2023/1/1 16:14
 * Description:
 **/
@RequestMapping("wx/footprint")
@RestController
public class FootPrintController {

    @Resource
    WxFootPrintService footPrintService;

    @GetMapping("list")
    public BaseRespVo list(BasePageInfo pageInfo){
        BaseRespVo respVo =  footPrintService.list(pageInfo);
        return respVo;
    }

    @PostMapping("delete")
    public BaseRespVo delete(@RequestBody Map<String, Integer> idMap){
        BaseRespVo respVo =  footPrintService.delete(idMap.get("id"));
        return respVo;
    }

}

